<?php echo'404';die();?>
{if $module.FileName=='tuijian'}
<div class="widget widget_recommend">
	{php}$array = explode(',',$zbp->Config( 'ydbaijia' )->tuijianid);{/php}
	{foreach $array as $key=>$id}
    {$post=GetPost((int)$id);}
    {if $key<1}
	<a href="{$post.Url}" target="_blank">
		<img src="{if $zbp->Config('ydbaijia')->thumb2}{ydbaijia_thumb2($post,345,340,0)}{else}{ydbaijia_thumbnail($post)}{/if}" alt="{$post.Title}">
		<i></i>
		<span>{$post.Title}</span>
	</a>
	{/if}
	{/foreach}
	<div class="info">
		<ul>
			{php}$array = explode(',',$zbp->Config( 'ydbaijia' )->tuijianid);{/php}
			{foreach $array as $key=>$id}
			{$post=GetPost((int)$id);}
			{if $key > 0}
			<li><a href="{$post.Url}" title="{$post.Title}" target="_blank">{$post.Title}</a></li>
			{/if}
			{/foreach}
		</ul>
	</div>
</div>
{elseif $module.FileName=='zuozhe'}
<div class="widget widget_author">
	{if $type=='article'}
	<div class="title">
		<img src="{$article.Author.Avatar}">
		<div class="info">
				<h4>{$article.Author.StaticName}</h4>
				<p>{if $article.Author.Intro}{$article.Author.Intro}{else}这家伙太懒。。。{/if}</p>
		</div>
	</div>
	<ul>
		{php}
$w=array();
$w[]=array('=','log_AuthorID',$article->Author->ID);
$w[] = array('=', 'log_Status', 0);
$s='';
$or=array('log_PostTime'=>'DESC');
$newlist_array=$zbp->GetArticleList($s,$w,$or,array(5),null,false);
			{/php}
		{if $newlist_array}
		{foreach $newlist_array as $mynew}
		<li><a href="{$mynew.Url}" target="_blank">{$mynew.Title}</a></li>
		{/foreach}
		{else}
		<li>暂无未发布任何投稿。</li>	
		{/if}
	</ul>
	{else}
	<h4>文章作者栏，只能在文章页显示，当前页面并非文章页，请拖拽掉掉当前对应侧栏！</h4>
	{/if}
</div>
{elseif $module.FileName=='paihang'}
<div class="widget widget_paihang">
	<h4>文章排行</h4>
	<script>
		$( function () {
			$( '.hot' ).tabslet();
		} );
	</script>
	<div class="hot">
		<ul>
			<li><a href="#hot_1">月榜</a></li><li><a href="#hot_2">年榜</a></li>
		</ul>
		<div id="hot_1" class="hotday">
			{php}$stime = time();$ytime = 30*24*60*60;$ztime = $stime-$ytime;$order = array('log_ViewNums'=>'DESC');$where = array(array('=','log_Status','0'),array('>','log_PostTime',$ztime));$array = $zbp->GetArticleList(array('*'),$where,$order,array(10),'');{/php}
			{foreach $array as $key=>$hotpost}{$i = $key+1}
			<p {if $i<2}class="hot_one"{/if}><span>{$i}</span><a href="{$hotpost.Url}" target="_blank">{$hotpost.Title}</a></p>
			{/foreach}
		</div>
		<div id="hot_2" class="hotday">
			{php}$stime = time();$ytime = 1000*24*60*60;$ztime = $stime-$ytime;$order = array('log_ViewNums'=>'DESC');$where = array(array('=','log_Status','0'),array('>','log_PostTime',$ztime));$array = $zbp->GetArticleList(array('*'),$where,$order,array(10),'');{/php}
			{foreach $array as $key=>$hotpost}{$i = $key+1}
			<p {if $i<2}class="hot_one"{/if}><span>{$i}</span><a href="{$hotpost.Url}" target="_blank">{$hotpost.Title}</a></p>
			{/foreach}
		</div>
	</div>
</div>
{elseif $module.FileName=='xiangguan'}
<div class="widget widget_previous">
	<h4>相关推荐</h4>
	<ul>
	{if $type=='article'}
	{$array=GetList(10,null,null,null,null,null,array('is_related'=>$article->ID));}
	{foreach $array as $related}
	{if isset($related)}
	<li><a href="{$related.Url}" target="_blank">{$related.Title}</a></li>
	{/if}
	{/foreach}
	{else}
	侧栏相关推荐模块只能拖拽到文章页对应侧栏，当前页面不是文章页，去掉吧！
	{/if}
	</ul>
</div>
{else}

{if $module.Type=='ul'}
<div class="widget widget_{$module.FileName}">
	{if (!$module.IsHideTitle)&&($module.Name)}<h4>{$module.Name}</h4>{/if}
	<ul>{$module.Content}</ul>
</div>
{/if}
{if $module.Type=='div'}
<div class="widget widget_{$module.FileName}">
	{if (!$module.IsHideTitle)&&($module.Name)}<h4>{$module.Name}</h4>{/if}
	<div class="widget_div">{$module.Content}</div>
</div>
{/if}

{/if}